#pragma once
#include "Renderer.h"
#include "Mesh.h"

namespace DYEngine
{
	class MeshRenderer : public Renderer
	{
	public:
		MeshRenderer();
		bool IsSkinned();
		void Draw() override;
		~MeshRenderer();
	public:
		void Destroy();
	public:
		inline MeshPtr GetMesh() const
		{
			return mMesh;
		}

		inline void SetMesh(const MeshPtr& pMesh)
		{
			mMesh = pMesh;
		}
	private:
		MeshPtr mMesh;
	};
}


